﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<CourseSystem.Core.Entities.CourseSettingInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    编辑
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm("Edit", "Setting", new { Model.Id }, FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
    <fieldset>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.CourseCode) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.CourseCode) %>
            <%: Html.ValidationMessageFor(model => model.CourseCode) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.CourseName) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.CourseName) %>
            <%: Html.ValidationMessageFor(model => model.CourseName) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.Teacher) %>
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Teacher) %>
            <%: Html.ValidationMessageFor(model => model.Teacher) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.LoginImgLogo) %>
        </div>
        <div class="editor-field">
            <img src="<%=ResolveUrl("~/"+Model.LoginImgLogo) %>" /><br />
            <input type="file" name="LoginImgLogoFile" />
            <%: Html.ValidationMessageFor(model => model.LoginImgLogo) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.LoginImgLeft) %>
        </div>
        <div class="editor-field">
            <img src="<%=ResolveUrl("~/"+Model.LoginImgLeft) %>" /><br />
            <input type="file" name="LoginImgLeftFile" />
            <%: Html.ValidationMessageFor(model => model.LoginImgLeft) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.LoginedImgTop) %>
        </div>
        <div class="editor-field">
            <img src="<%=ResolveUrl("~/"+Model.LoginedImgTop) %>" /><br />
            <input type="file" name="LoginedImgTopFile" />
            <%: Html.ValidationMessageFor(model => model.LoginedImgTop) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.AdminImgTop) %>
        </div>
        <div class="editor-field">
            <img src="<%=ResolveUrl("~/"+Model.AdminImgTop) %>" /><br />
            <input type="file" name="AdminImgTopFile" />
            <%: Html.ValidationMessageFor(model => model.AdminImgTop) %>
        </div>
        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("返回", "Index") %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
